﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class public_welcom : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!MasApp.BLL.Check.CheckLoginForWelcome())
        {
            /*Response.Write("<script  language='javascript' type='text/javascript'>"
                + "top.location.href='../default.aspx';</script>");*/
            HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>"
                   + "window.alert('请先登录！'); "
                   + "top.location.href='../default.aspx';"
                   + "</script>");
            /*this.Parent.Controls.Clear();
            Label1.Text = "请先<a href='../default.aspx'>登录</a>！";
            Label1.ForeColor = System.Drawing.Color.Red;
            Label1.Font.Size = FontUnit.Large;*/
        }
        else
        {
            Panel1.Visible = true;
        }
    }
}
